<template>
  <FlowTree
    v-model="treeValue"
    :start-props="startProps"
    :readonly="false"
    :form-schema="formSchema" />
  <a-row class="hidden">
    <span class="i-ant-design-file-add-outlined"></span>
    <span class="i-ant-design-pushpin-outlined"></span>
    <span class="i-lucide-stamp"></span>
    <span class="i-lucide-send"></span>
    <span class="i-ant-design-share-alt-outlined"></span>
    <span class="i-ant-design-node-expand-outlined"></span>
    <span class="i-ant-design-file-protect-outlined"></span>
    1 2 3 4 5
  </a-row>
</template>
<script setup lang="ts">
import { FlowTree, StartFlowNode } from '@ykst/flow';
import { treeString, formSchema } from './tree';
const startProps = {
  enableCustomer: true,
  enableFormConfig: true,
  visibleSupportLabel: true,
  visibleMembers: [
    { name: '测试部门', visibleValue: '917170168', visibleType: 0, value: '917170168' },
    { name: '新疆分公司', visibleValue: '901139851', visibleType: 0, value: '901139851' },
    {
      name: '内蒙古云科税通科技发展有限公司',
      visibleValue: '574159138',
      visibleType: 0,
      value: '574159138',
    },
    { name: '财务部', visibleValue: '380290077', visibleType: 0, value: '380290077' },
    {
      name: '郭会阳',
      visibleValue: '024523260436320262',
      visibleType: 1,
      value: '024523260436320262',
    },
    {
      name: '郑梦憬',
      visibleValue: '3531103236482647',
      visibleType: 1,
      value: '3531103236482647',
    },
  ],
};
const treeValue = shallowRef(JSON.parse(treeString) as StartFlowNode);
</script>
